package code.example.zookeeper.base.command.write;

import code.example.zookeeper.ZookeeperHolder;
import org.apache.zookeeper.data.Stat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SetData {
    Logger logger = LoggerFactory.getLogger(SetData.class);
    ZookeeperHolder holder = null;
    public SetData(ZookeeperHolder holder){
        this.holder = holder;
    }



    public  void  setData(String path, byte []data) throws Exception {
        Stat stat =  this.holder.getInstance().setData(path,data,-1);

    }
}
